<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;

class Test2 extends Model
{
    //
    protected $table = 'test2';
    protected $primaryKey = 'pid';
    public $timestamps = false;
    protected $guarded = [];

    public function fangfa2()
    {
        return $this->belongsTo('App\Http\Model\Test1','t1_uid','uid');
    }
}
